cmake_minimum_required(VERSION 3.5)

project(bisection LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(bisection main.cpp tabu.cpp tabu.h utils.cpp utils.h)

find_package(Eigen3)
target_include_directories(bisection PRIVATE ${EIGEN3_INCLUDE_DIR})

find_package(OpenMP)
if(OpenMP_CXX_FOUND)
    message("abc " ${OpenMP_CXX_INCLUDE_DIR})
    target_include_directories(bisection PRIVATE ${OpenMP_CXX_INCLUDE_DIRS})
    target_link_libraries(bisection OpenMP::OpenMP_CXX)
endif()
